package legoproject.Behaviors;

import legoproject.*;
import legoproject.Behaviors.Behavior;
import lejos.nxt.*;
import java.util.ArrayList;

public class ShutdownSystem implements Behavior {

    public boolean condition() {
        return (GarbageCollector.escapeButton.isPressed());
    }

    public ArrayList behave() {
        ArrayList result = new ArrayList();
        result.add(new Instruction(InstructionType.SHUTDOWN, 0, 0));
        return result;
    }
}

